﻿@model Gagnatek.WebSite.Models.Loans
@{
    ViewBag.Title = "Details";
}
<h2>
    Details de l'emprunt</h2>
<fieldset>
    <legend>Emprunt</legend>
    <div class="display-label">
        Date d'emprunt</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.pickedAt)
    </div>
    <div class="display-label">
        Date de retour</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.returnedAt)
    </div>
    <div class="display-label">
        Utilisateurs</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Users.email)
    </div>
    <div class="display-label">
        Medias</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Medias.name)
    </div>
</fieldset>
<p>
    @if (User.IsInRole("Owner"))
    {
        @Html.ActionLink("Editer", "Edit", new { id = Model.id })
    }
    @Html.ActionLink("Revenir à la liste", "Index")
</p>
